﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shop
{
    class CustInfo
    {//variables and properties
        private string cust_id;

        public string Cust_id
        {
            get { return cust_id; }
            set { cust_id = value; }
        }
        private string first_name;

        public string First_name
        {
            get { return first_name; }
            set { first_name = value; }
        }
        private string last_name;

        public string Last_name
        {
            get { return last_name; }
            set { last_name = value; }
        }
        private string email;

        public string Email
        {
            get { return email; }
            set { email = value; }
        }
        private string bank_account;

        public string Bank_account
        {
            get { return bank_account; }
            set { bank_account = value; }
        }
        private int mobile;

        public int Mobile
        {
            get { return mobile; }
            set { mobile = value; }
        }
        private string birht_date;

        public string Birht_date
        {
            get { return birht_date; }
            set { birht_date = value; }
        }
        private string gender;

        public string Gender
        {
            get { return gender; }
            set { gender = value; }
        }
        private string country;

        public string Country
        {
            get { return country; }
            set { country = value; }
        }
        private string city;

        public string City
        {
            get { return city; }
            set { city = value; }
        }

        private string bracelet;

        public string Bracelet
        {
            get { return bracelet; }
            set { bracelet = value; }
        }

        //constructor
        public CustInfo(string cust_id,string first_name, string last_name,string email,string bank_account,int mobile,
            string birth_date,string gender,string country,string city,string bracelet)
        {
            this.cust_id = cust_id;
            this.first_name = first_name;
            this.last_name = last_name;
            this.email = email;
            this.bank_account = bank_account;
            this.mobile = mobile;
            this.birht_date = birth_date;
            this.gender = gender;
            this.country = country;
            this.city = city;
            this.bracelet = bracelet;
        }

        public CustInfo() { }

        public CustInfo(string cust_id, string first_name, string last_name, string email, string bank_account, int mobile,
        string birth_date, string gender, string country, string city)
        {
            this.cust_id = cust_id;
            this.first_name = first_name;
            this.last_name = last_name;
            this.email = email;
            this.bank_account = bank_account;
            this.mobile = mobile;
            this.birht_date = birth_date;
            this.gender = gender;
            this.country = country;
            this.city = city;
           
        }
        //methods
        public string InfoString()
        {
            string info = "Approved\n"+"Customer:"+cust_id+"\n"+"Name:"+first_name+" "+ last_name+"\n Email:"+
                email+"\n Bank account:"+bank_account+"\n Mobile number:"+Convert.ToString(mobile)+"\n DOB:"+
                Convert.ToString(birht_date)+"\n Gender:"+ gender+"\n Location:"+ country+" "+city;
            return info;
        }


    }
}
